<%@ page language="java" contentType="text/html; charset=UTF-8"
	pageEncoding="UTF-8"%>
<%@ taglib uri="http://java.sun.com/jstl/core" prefix="c"%>
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<title>View a Order</title>
<script src="//cdn.bootcss.com/bootstrap-validator/0.5.3/js/bootstrapValidator.js"></script>
<jsp:include page="header.jsp"></jsp:include>
</head>
<body>
<jsp:include page="navigation.jsp"></jsp:include>
<div style="width:500px;align:center;margin-left:20px;">
	<form action="${pageContext.request.contextPath}/order/updateOrder.acc" method="post">
		<div class="form-group">
			<label for="exampleInputEmail1">姓名</label> <input type="text"
				class="form-control" id="name" name="uname" readonly="readonly" value="${order.uname }">
				<input type="hidden" id="mid" name="mid" readonly="readonly" value="${order.mid }">
				<input type="hidden" id="email" name="email" readonly="readonly" value="${order.email }">
				<input type="hidden" id="sid" name="sid" readonly="readonly" value="${order.sid }">
		</div>
		<div class="form-group">
			<label for="exampleInputPassword1">手机号</label> <input type="text"
				class="form-control" id="mobile" name="phone" readonly="readonly" value="${order.phone }">
		</div>
		<div class="form-group">
			<label for="exampleInputEmail1">商品名称</label> <input type="text"
				class="form-control" id="productName" name="productName" placeholder="" value="${order.productName }">
		</div>
		<div class="form-group">
			<label for="exampleInputPassword1">图片地址</label> <input type="text"
				class="form-control" id="productImg" name="productImg" value="${order.productImg }"
				placeholder="">
		</div>
		<div class="form-group">
			<label for="exampleInputEmail1">尺寸</label> <input type="text"
				class="form-control" id="productSize" name="productSize" value="${order.productSize }"
				placeholder="eg:60X300">
		</div>
		<div class="form-group">
			<label for="exampleInputPassword1">产品所在</label> <input type="text"
				class="form-control" id="proudctWhere" name="proudctWhere" placeholder="" value="${order.proudctWhere }">
		</div>
		<div class="form-group">
			<label for="exampleInputPassword1">画框</label> <input type="text"
				class="form-control" id="frame" name="frame" placeholder="" value="${order.frame }">
		</div>
		<div class="form-group">
			<label for="exampleInputPassword1">价格</label> <input type="text"
				class="form-control" id="price" name="price" placeholder="" value="${order.price }">
		</div>
		<div class="form-group">
			<label for="exampleInputPassword1">支付状态</label>
			<div class="radio">
			  <label>
			    <input type="radio" name="isPaid" id="optionsRadios1" value="0"  ${order.isPaid==0?"checked":"" }>
			    未支付&nbsp;&nbsp;
			  </label>
			  <label>
			    <input type="radio" name="isPaid" id="optionsRadios2" value="1" ${order.isPaid==1?"checked":"" }>
			    已支付&nbsp;&nbsp;
			  </label>
			</div>
		</div>
		<div class="form-group">
			<label for="exampleInputPassword1">送货地址</label> <input type="text"
				class="form-control" id="shippingAddress" name="shippingAddress" placeholder="" value="${order.shippingAddress }">
		</div>
		<div class="form-group">
			<label for="exampleInputPassword1">付款方式</label>
			<div class="radio">
			  <label>
			    <input type="radio" name="payMethod" id="optionsRadios1" value="wx"  ${order.payMethod=='wx'?"checked":"" }>
			    微信&nbsp;&nbsp;
			  </label>
			  <label>
			    <input type="radio" name="payMethod" id="optionsRadios2" value="alipay" ${order.payMethod=='alipay'?"checked":"" }>
			   支付宝&nbsp;&nbsp;
			  </label>
			  <label>
			    <input type="radio" name="payMethod" id="optionsRadios3" value="unionpay" ${order.payMethod=='unionpay'?"checked":"" }>
			  银联支付&nbsp;&nbsp;
			  </label>
			  <label>
			    <input type="radio" name="payMethod" id="optionsRadios4" value="offline" ${order.payMethod=='offline'?"checked":"" }>
			   转账&nbsp;&nbsp;
			  </label>
			  <label>
			    <input type="radio" name="payMethod" id="optionsRadios5" value="charge" ${order.payMethod=='charge'?"checked":"" }>
			   现金&nbsp;&nbsp;
			  </label>
			  <label>
			    <input type="radio" name="payMethod" id="optionsRadios6" value="other" ${order.payMethod=='other'?"checked":"" }>
			    其它&nbsp;&nbsp;
			  </label>
			</div>
		</div>
		<div class="form-group">
			<label for="exampleInputPassword1">是否发货</label>
			<div class="radio">
			  <label>
			    <input type="radio" name="shipFlag" id="optionsRadios1" value="0"  ${order.shipFlag==0?"checked":"" }>
			    否&nbsp;&nbsp;
			  </label>
			  <label>
			    <input type="radio" name="shipFlag" id="optionsRadios2" value="1"  ${order.shipFlag==1?"checked":"" }>
			    是&nbsp;&nbsp;
			  </label>
			</div>
		</div>
		<div class="form-group">
			<label for="exampleInputPassword1">发货类型</label> <input type="text"
				class="form-control" id="shippingType" name="shippingType" value="${order.uname }"
				placeholder="">
		</div>
		
		<div class="form-group">
			<label for="exampleInputPassword1">发货单</label> <input type="text"
				class="form-control" id="shippingBill" name="shippingBill" value="${order.shippingBill }"
				placeholder="">
		</div>
		
		<div class="form-group">
			<label for="exampleInputPassword1">运费</label> <input type="text"
				class="form-control" id="fee" name="fee" value="${order.fee }"
				placeholder="">
		</div>
		
		<div class="form-group">
			<label for="exampleInputPassword1">是否托管</label> 
			<div class="radio">
			  <label>
			    <input type="radio" name="trusteeship" id="optionsRadios1" value="0" ${order.trusteeship==0?"checked":"" }>
			    否&nbsp;&nbsp;
			  </label>
			  <label>
			    <input type="radio" name="trusteeship" id="optionsRadios2" value="1" ${order.trusteeship==1?"checked":"" }>
			    是&nbsp;&nbsp;
			  </label>
			</div>
		</div>
		
		<div class="form-group">
			<label for="exampleInputPassword1">画家名称</label> <input type="text"
				class="form-control" id="artistName" name="artistName" value="${order.artistName }"
				placeholder="">
		</div>
		
		<div class="form-group">
			<label for="exampleInputPassword1">介绍人</label> <input type="text"
				class="form-control" id="recommondUname" name="recommondUname"
				readonly="readonly" value="${order.recommondUname }">
		</div>
		
		<div class="form-group">
			<label for="exampleInputPassword1">介绍人佣金</label> <input type="text"
				class="form-control" id="recommondFee" name="recommondFee" value="${order.recommondFee }"
				placeholder="">
		</div>
		
		<div class="form-group">
			<label for="exampleInputPassword1">投资活动代码</label> <input type="text"
				class="form-control" id="investCode" name="investCode" value="${order.investCode }"
				placeholder="">
		</div>
		
		<button type="submit" class="btn btn-primary">Update a Order</button>
	</form>
	</div>
</body>
</html>